class ChannelModel {
  int? index;
  double? x;
  double? y;
  double? value;
  double? max;
  double? min;
  double? range;
  double? avg;

  bool? select;
  List<double>?tems;
  ChannelModel({  this.index, this.x, this.y,this.value,this.select,this.tems,this.max,this.min,this.range,this.avg});
  ChannelModel.fromJson(Map<String, dynamic> json) {
    index = json['index'];
    x = double.parse( json['x'].toString());
    y = double.parse(json['y'].toString());
    value = 0.0;
    max = 0.0;
    min = 0.0;
    range = 0.0;
    avg = 0.0;
    select =false;
    tems = [];
  }
}